package com.uyayo.system.authority.service;

import java.util.List;

import com.uyayo.framework.common.exception.CustomException;
import com.uyayo.framework.message.model.Result;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.system.authority.entity.SysUser;
import com.uyayo.system.authority.pojo.SysUserPO;
import com.uyayo.system.authority.model.SysUserCondition;

public interface SysUserService {
	
	SysUserPO getUserToRole(String userId);

	SysUser getUserById(String id) throws Exception;
	
	List<SysUser> selectUser(SysUserCondition sysUserQUERY);
	
	PageBean<SysUser> selectUserByPaging(PageBean<SysUser> pageBean, SysUserCondition sysUserQUERY);
	
	int saveUser(SysUser user);

	SysUser getUserByUpdateTestOnly(String loginname);

	int updateUser(SysUser user);

	int deleteUser(String id) throws CustomException;

	Result assignUserRoles(String ids,String userId);

	Result grantUserOrganizations(String ids,String userId);
	
	SysUser  getUserByLoginname(String loginname);

}
